<%@ page import="com.baichang.framework.security.entity.SAdmin" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
           prefix="decorator" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<%
    String path = request.getContextPath();
    request.setAttribute("path", path);
  request.setAttribute("trendPath","http://47.105.128.56:9097/api/interact/web");
  request.setAttribute("trendSelectPath","http://47.105.128.56:9096/web");
    SAdmin admin = (SAdmin) request.getSession().getAttribute("SESSION_USER_WEB");
    request.setAttribute("user", admin);

    Integer userRole = (Integer) request.getSession().getAttribute("user_role");
    request.setAttribute("userRole", userRole);

    String adminPhoto = "http://www.taoshunda.com/images/";
    if (admin != null)
        adminPhoto += admin.getPhoto();
    request.setAttribute("adminPhoto", adminPhoto);

    String title = "淘瞬达管理平台";
    request.setAttribute("title", title);
%>

